Cast as bool instead of using boolval()

boolval() requires PHP >= 5.5
add .gitignore