Cannot call isset with function