Removed function calls from empty(), works only with php 5.5