Put a space in between the paren, the !, and the $... if ( ! $hash)