The problem is in this condition:
else (is_page( array( 205, 399, 401, 403, 405, 407 ) ) ) { ?>
Either change else to elseif
or remove the condition after else
The problem is in this condition:
else (is_page( array( 205, 399, 401, 403, 405, 407 ) ) ) { ?>
Either change else to elseif
or remove the condition after else