please change to
`if (projector.scale != null) {`
(note the space between if and paren)