updated return annotation

Updated from @return bool  -> @return bool|null since it returns null too