Fixed function param mishaps and null -> bool casting