utilisezlinux/sandbox — pull request #1 by samuel4x4 (2014-11-19 15:47:17+00:00)
Title: is_executable() already returns true or false

is_executable() function returns TRUE if the filename exists and is executable, or FALSE on error, so you can simplify the code ;)