Feel free to change anything or not. Adding function header to is_file_a could be sufficient.